﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CPPEI.PM.Shell.SysViews
{
    /// <summary>
    /// Interaction logic for HeaderView.xaml
    /// </summary>
    public partial class HeaderView : UserControl
    {
        public HeaderView()
        {
            InitializeComponent();
        }

        private void _ctlBtnCreateWorkItem_Click_1(object sender, RoutedEventArgs e)
        {

        }

        private void _ctlBtnCreateWorkSheet_Click_1(object sender, RoutedEventArgs e)
        {
            Dialogs.CreateWorkSheetDlg dlg = new Dialogs.CreateWorkSheetDlg();
            if (dlg.ShowDialog() == true)
            {
            }
        }

        private void _ctlBtnManageUser_Click_1(object sender, RoutedEventArgs e)
        {
            Dialogs.UserManagementDlg dlg = new Dialogs.UserManagementDlg();
            dlg.ShowDialog();
        }

        private void _ctlBtnRefresh_Click_1(object sender, RoutedEventArgs e)
        {
            Event.UI.UIEventBus.PublishAsync(new Event.UI.UIRefreshWorkSheetEvent());
        }
    }
}
